class priceEntity {
  String _msg;
  int _code;
  List<Data> _data;
  double _price;

  priceEntity({String msg, int code, List<Data> data, double price}) {
    this._msg = msg;
    this._code = code;
    this._data = data;
    this._price = price;
  }

  String get msg => _msg;
  set msg(String msg) => _msg = msg;
  int get code => _code;
  set code(int code) => _code = code;
  List<Data> get data => _data;
  set data(List<Data> data) => _data = data;
  double get price => _price;
  set price(double price) => _price = price;

  priceEntity.fromJson(Map<String, dynamic> json) {
    _msg = json['msg'];
    _code = json['code'];
    if (json['data'] != null) {
      _data = new List<Data>();
      json['data'].forEach((v) {
        _data.add(new Data.fromJson(v));
      });
    }
    _price = json['price'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['msg'] = this._msg;
    data['code'] = this._code;
    if (this._data != null) {
      data['data'] = this._data.map((v) => v.toJson()).toList();
    }
    data['price'] = this._price;
    return data;
  }
}

class Data {
  int _index;
  double _price;
  double _range;

  Data({int index, double price, double range}) {
    this._index = index;
    this._price = price;
    this._range = range;
  }

  int get index => _index;
  set index(int index) => _index = index;
  double get price => _price;
  set price(double price) => _price = price;
  double get range => _range;
  set range(double range) => _range = range;

  Data.fromJson(Map<String, dynamic> json) {
    _index = json['index'];
    _price = json['price'];
    _range = json['range'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['index'] = this._index;
    data['price'] = this._price;
    data['range'] = this._range;
    return data;
  }
}
